import request from '@/utils/request'
//文章管理接口
export function sysNewsContentsQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/sysNewsContents/query',
    params: data,
  })
}

export function sysNewsContentsOpenApiQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/sysNewsContents/openApi/query',
    params: data,
  })
}

export function sysNewsContentsOpenApiQueryPost(data) {
  //分页列表
  return request({
    method: 'post',
    url: '/sysNewsContents/openApi/querySearchList',
    data,
  })
}

export function sysNewsContentsQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/sysNewsContents/openApi/query/' + id,
  })
}
export function sysNewsContentsQueryId(id) {
  //查询
  return request({
    method: 'get',
    url: '/sysNewsContents/query/' + id,
  })
}

export function sysNewsContentsDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/sysNewsContents/delete/' + id,
  })
}

export function sysNewsContentsDeleteBatch(data) {
  //批量删除
  return request({
    method: 'post',
    url: '/sysNewsContents/deleteBatch',
    data,
  })
}

export function sysNewsContentsAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/sysNewsContents/add',
    data,
  })
}

export function sysNewsContentsUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/sysNewsContents/update',
    data,
  })
}

export function sysNewsContentsBatchChangeAuditStatus(data) {
  //批量修文章刊审核状态
  return request({
    method: 'post',
    url: '/sysNewsContents/batchChangeAuditStatus',
    data,
  })
}

export function sysNewsContentsBatchChangeStatus(data) {
  //批量修改文章发布状态
  return request({
    method: 'post',
    url: '/sysNewsContents/batchChangeStatus',
    data,
  })
}

export function sysNewsContentsDragSort(data) {
  //批量修改文章发布状态
  return request({
    method: 'post',
    url: '/sysNewsContents/dragSort',
    data,
  })
}
